import { get as getInject } from '@choerodon/inject';

const HostGroupDataSet = ():any => ({
  autoQuery: true,
  selection: 'single',
  pageSize: 20,
  transport: {
    read({ data }:any) {
      const hostGroupApiConfig = getInject('configuration-devops-api-host-group-hostGroupConfig');
      return hostGroupApiConfig?.getGroupList();
    },
  },
});

export default HostGroupDataSet;
